package edu.nf.project.services.employeeAndCustomerInformation;


import edu.nf.project.entitys.entity.employeeAndCustomerInformation.convention.ShippingAddress;

import java.util.List;

/**
 * @author CSY
 * @date 2025 - 06 - 08
 */
public interface ShippingAddressService {
    /**
     * 根据账户编号查找收货地址
     * @param uId 账户编号
     * @return
     */
    List<ShippingAddress> listAddressByUserId(int uId);

    /**
     * 根据地址编号获取单条信息
     * @param addressId 地址编号
     * @return
     */
    ShippingAddress getAddressByAddressId(int addressId);

    /**
     * 添加收货地址
     * @param address
     */
    void addAddress(ShippingAddress address);

    /**
     * 修改收货地址
     * @param address
     */
    void updateAddress(ShippingAddress address);

    /**
     * 删除收货地址
     * @param addressId
     */
    void deleteAddress(int addressId);
}
